﻿package com.videointeractive.vo
{
	public class ElementGraphicVO
	{
		public function ElementGraphicVO(
										 	pGraphicSourceURL	: String = null,
											pGraphicWidth		: Number = NaN,
											pGraphicHeight		: Number = NaN,
											pGraphicX			: Number = NaN,
											pGraphicY			: Number = NaN
										 )
		{
			if ( pGraphicSourceURL )
				graphicSourceURL = pGraphicSourceURL;
				
			if ( pGraphicWidth )
				graphicWidth = pGraphicWidth;
				
			if ( pGraphicHeight )
				graphicHeight = pGraphicHeight;
				
			if ( pGraphicX )
				graphicX = pGraphicX;
				
			if ( pGraphicY )
				graphicY = pGraphicY;
		}
		
		/////////////////////////////////////////////////////////////////////////////////////////////////////////
		// MEMBRE DE CLASSE
		/////////////////////////////////////////////////////////////////////////////////////////////////////////
		
		private var _graphicSourceURL	: String;
		private var _graphicWidth		: Number;
		private var _graphicHeight		: Number;
		private var _graphicX			: Number;
		private var _graphicY			: Number;
		
		/////////////////////////////////////////////////////////////////////////////////////////////////////////
		// GETTER & SETTER
		/////////////////////////////////////////////////////////////////////////////////////////////////////////
				
		public function get graphicSourceURL( ) : String
		{
			return _graphicSourceURL;
		}
		
		public function set graphicSourceURL( val : String ) : void
		{
			_graphicSourceURL = val;
		}
				
		public function get graphicWidth( ) : Number
		{
			return _graphicWidth;
		}
		
		public function set graphicWidth( val : Number ) : void
		{
			_graphicWidth = val;
		}
		
		public function get graphicHeight( ) : Number
		{
			return _graphicHeight;
		}
		
		public function set graphicHeight( val : Number ) : void
		{
			_graphicHeight = val;
		}
		
		public function get graphicX( ) : Number
		{
			return _graphicX;
		}
		
		public function set graphicX( val : Number ) : void
		{
			_graphicX = val;
		}
		
		public function get graphicY( ) : Number
		{
			return _graphicY;
		}
		
		public function set graphicY( val : Number ) : void
		{
			_graphicY = val;
		}
	}
}